<?=$ind?><h2>Salles</h2>
<?php
	if ($db_conn) {
		$query = "SELECT * FROM `".$db_table['room']."` WHERE `status`='open' ORDER BY `name`;";
		//echo $query;
		$query = mysql_query($query);
		if (mysql_num_rows($query)) {
?>
<?=$ind?><ul class="list">
<!--
<?=$ind?>	<li class="header">
<?=$ind?>		<span class="name">Nom</span>
<?=$ind?>		<span class="players">Joueurs connect&eacute;s</span>
<?=$ind?>	</li>
-->
<?php
			while ($r = mysql_fetch_array($query)) {
?>
<?=$ind?>	<li class="room">
<?=$ind?>		<span class="name"><a href="<?=$r['address']?>" onclick="window.open(this.href); return false;"><?=htmlentities($r['name'])?></a></span>
<?=$ind?>		<span class="players">#</span>
<?=$ind?>		<br class="clearer" />
<?=$ind?>	</li>
<?php
			}
?>
<?=$ind?></ul> 
<?php
		} else {
?>
<?=$ind?><p>Aucune salle n'est accessible actuellement.</p>
<?php
		}
	}
?>

